﻿@using CodeGenerator.Models.TemplateModels
@inherits RazorEngine.Templating.TemplateBase<CodeGenerator.Models.TemplateModels.DtoFileModel>
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using Abp.AutoMapper;
using Enterprise.Enums;

namespace Enterprise.Application.@(Model.DirName).Dto
{
    public class @(Model.Name)ListDto
    {
    @foreach (ClassProperty classProperty in Model.ClassPropertys)
    {
        if (!classProperty.IsList) { continue; }
        @:///<summary>
        @:/// @classProperty.CnName 
        @:///</summary>
            if (classProperty.ClassAttributes != null && classProperty.ClassAttributes.Count > 0)
            {
                foreach (var classAttribute in classProperty.ClassAttributes)
                {
        @:@Raw(classAttribute.NameValue)
                }
            }

        @:public @classProperty.PropertyType @classProperty.Name { get; set; }
        }
    }
}
